package com.yxh.lib_base.event

import com.yxh.lib_base.base.BaseApp
import com.yxh.lib_base.base.viewmodel.BaseViewModel
import com.yxh.lib_base.ext.livedata.BooleanLiveData
import com.yxh.lib_base.ext.livedata.event.EventLiveData


/**
 * 描述　:APP全局的ViewModel，可以在这里发送全局通知替代EventBus，LiveDataBus等
 */

//val appEvent by lazy { BaseApp._EventViewModule }

class EventViewModel : BaseViewModel() {

    //更改用户头像
    val userHeadPic = EventLiveData<String>()

    //更改用户头像边框
    val userHeadPicOutside = EventLiveData<String>()

    //更改用户昵称
    val nickName = EventLiveData<String>()

    //更改用户性别
    val sex = EventLiveData<String>()

    //更改用户生日
    val birthday = EventLiveData<String>()

    //更改手机号
    val phoneNum = EventLiveData<String>()

    //关注数量
    val attentionNum = EventLiveData<Int>()

    //收藏数量
    val collectNum = EventLiveData<Int>()

    /**是青少年模式*/
    val isTeenMode = BooleanLiveData()
}